package org.azdroid.kit;

import org.azdroid.kit.db.DataBaseManager;

import android.app.Application;

public class AZApplication extends Application {

	private static AZApplication instance = null;

	/**
	 * 静态工厂方法
	 */
	public synchronized static AZApplication getInstance() {
		return instance;
	}

	@Override
	public void onCreate() {
		instance = this;
		super.onCreate();
		// DataBaseManager.getInstance().addTable(KeyValueTable.getInstance());
		DataBaseManager.getInstance().onLoad();
	}
}
